using System;
using System.Windows.Forms;
using System.Xml;

using GSN.Config;
using GSNConf.GenConfigControls;
using GSNConf.Senders.ConfigControls;

namespace GSNConf.Senders
{
    class SkypeSMSSenderConfigurator : IDictionaryConfigurator
    {
        public SkypeSMSSenderConfigurator()
        {
            setItemString("none", "Username");
            setItemString("none", "Password");
        }

        public override bool show()
        {
            GenConfigForm form = new GenConfigForm(new SkypeSMSSenderConfigControl(), "Skype Settings");

            /*((TextBox)form.Controls.Find("txtSkypeUsername", true)[0]).Text = getItemString("Username");
            ((TextBox)form.Controls.Find("txtSkypePassword", true)[0]).Text = getItemString("Password");*/

            if (form.ShowDialog() == DialogResult.OK)
            {
                /*setItemString(((TextBox)form.Controls.Find("txtSkypeUsername", true)[0]).Text, "Username");
                setItemString(((TextBox)form.Controls.Find("txtSkypePassword", true)[0]).Text, "Password");*/

                return true;
            }

            return false;
        }

        /*public override string ToString()
        {
            return "Skype";
        }*/
    }
}
